<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //获取主机地址之后的目录，/crm/
    //console.log(window.document.location.pathname);
    window.location.href = window.document.location.pathname + "login";
</script>
</body>
</html>